﻿import request from '/@/utils/request';
enum Api {
  AddUploadLog = '/api/uploadLog/add',
  DeleteUploadLog = '/api/uploadLog/delete',
  UpdateUploadLog = '/api/uploadLog/update',
  PageUploadLog = '/api/uploadLog/page',
  DetailUploadLog = '/api/uploadLog/detail',
  GetProjectProjectIdDropdown = '/api/uploadLog/ProjectProjectIdDropdown',
}

// 增加通行记录
export const addUploadLog = (params?: any) =>
	request({
		url: Api.AddUploadLog,
		method: 'post',
		data: params,
	});

// 删除通行记录
export const deleteUploadLog = (params?: any) => 
	request({
			url: Api.DeleteUploadLog,
			method: 'post',
			data: params,
		});

// 编辑通行记录
export const updateUploadLog = (params?: any) => 
	request({
			url: Api.UpdateUploadLog,
			method: 'post',
			data: params,
		});

// 分页查询通行记录
export const pageUploadLog = (params?: any) => 
	request({
			url: Api.PageUploadLog,
			method: 'post',
			data: params,
		});

// 详情通行记录
export const detailUploadLog = (id: any) => 
	request({
			url: Api.DetailUploadLog,
			method: 'get',
			data: { id },
		});

export const getProjectProjectIdDropdown = () =>
		request({
		url: Api.GetProjectProjectIdDropdown,
		method: 'get'
		});

